import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yqys_target/utils/yq_colors.dart';
import 'package:yqys_target/widgets/form_list_item.dart';
import 'package:yqys_target/pages/organization/controllers/organization_auth_controller.dart';
import 'package:yqys_target/widgets/xh_auto_height_text_field.dart';

class FinancialInfoPage extends StatelessWidget {
  const FinancialInfoPage({super.key});

  @override
  Widget build(BuildContext context) {
    final controller = Get.find<OrganizationAuthController>();

    return SingleChildScrollView(
      padding: const EdgeInsets.all(16),
      child: DefaultTextStyle(
        style: TextStyle(fontSize: 15, color: YQColors.primary),
        child: Column(
          children: [
            ClipRRect(
              borderRadius: BorderRadius.circular(10),
              child: Container(
                color: Colors.white,
                child: Column(
                  children: [
                    FormListItem(
                      showArrow: false,
                      title: "机构名称",
                      trailing: SizedBox(
                        width: 200,
                        child: Text(
                          "一起益事儿",
                          textAlign: TextAlign.right,
                          style: TextStyle(
                            fontSize: 15,
                            color: Colors.grey[600],
                          ),
                        ),
                      ),
                    ),
                    FormListItem(
                      title: "税号",
                      trailing: SizedBox(
                        width: 200,
                        child: XHAutoHeightTextField(
                          maxLength: 30,
                          width: 200,
                          placeholder: "请输入税号",
                         
                        ),
                      ),
                    ),
                    FormListItem(
                      title: "开户银行",
                      trailing: SizedBox(
                        width: 200,
                        child: XHAutoHeightTextField(
                          maxLength: 30,
                          width: 200,
                          placeholder: "请输入开户银行",
                
                        ),
                      ),
                    ),
                    FormListItem(
                      title: "银行账号",
                      hideDivider: true,
                      trailing: SizedBox(
                        width: 200,
                        child: XHAutoHeightTextField(
                          maxLength: 30,
                          width: 200,
                          placeholder: "请输入银行账号",
                
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
} 